package com.iplant.mes.service.po.print;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.utils.general.CalendarTool;

import java.util.*;

/**
 * 出厂试验数据
 *
 * @author YouWang·Peng
 * 2024-1-5 15:57:47
 */
public class SFCFactoryTest {
    /**
     * 表码
     */
    public String TableCode = "";
    /**
     * 报告编号
     */
    public String ReportNumber = "";
    /**
     * 产品名称
     */
    public String ProductName = "";
    /**
     * 产品型号
     */
    public String ProductNo = "";
    /**
     * 试区温度
     */
    public float Temperature = 0.0f;
    /**
     * 试区湿度
     */
    public float Humidity = 0.0f;
    /**
     * 出厂日期
     */
    public Calendar ProductDate = CalendarTool.getBasicDate();
    /**
     * 表格行数据
     */
    public List<SFCFactoryTestItem> ItemList = new ArrayList<>();

    /**
     * 表头待替换的标准范围值
     */
    public Map<String, String> StandardMap = new HashMap<>();

    public SFCFactoryTest() {
    }

    public SFCFactoryTest(String tableCode, String reportNumber, String productName, String productNo,
                          float temperature, float humidity, Calendar productDate, List<SFCFactoryTestItem> itemList) {
        TableCode = tableCode;
        ReportNumber = reportNumber;
        ProductName = productName;
        ProductNo = productNo;
        Temperature = temperature;
        Humidity = humidity;
        ProductDate = productDate;
        ItemList = itemList;
    }

    @JsonProperty("TableCode")
    public String getTableCode() {
        return TableCode;
    }

    public void setTableCode(String tableCode) {
        TableCode = tableCode;
    }

    @JsonProperty("ReportNumber")
    public String getReportNumber() {
        return ReportNumber;
    }

    public void setReportNumber(String reportNumber) {
        ReportNumber = reportNumber;
    }

    @JsonProperty("ProductName")
    public String getProductName() {
        return ProductName;
    }

    public void setProductName(String productName) {
        ProductName = productName;
    }

    @JsonProperty("ProductNo")
    public String getProductNo() {
        return ProductNo;
    }

    public void setProductNo(String productNo) {
        ProductNo = productNo;
    }

    @JsonProperty("Temperature")
    public float getTemperature() {
        return Temperature;
    }

    public void setTemperature(float temperature) {
        Temperature = temperature;
    }

    @JsonProperty("Humidity")
    public float getHumidity() {
        return Humidity;
    }

    public void setHumidity(float humidity) {
        Humidity = humidity;
    }

    @JsonProperty("ProductDate")
    public Calendar getProductDate() {
        return ProductDate;
    }

    public void setProductDate(Calendar productDate) {
        ProductDate = productDate;
    }

    @JsonProperty("ItemList")
    public List<SFCFactoryTestItem> getItemList() {
        return ItemList;
    }

    public void setItemList(List<SFCFactoryTestItem> itemList) {
        ItemList = itemList;
    }

    @JsonProperty("StandardMap")
    public Map<String, String> getStandardMap() {
        return StandardMap;
    }

    public void setStandardMap(Map<String, String> standardMap) {
        StandardMap = standardMap;
    }
}
